extension IterableExtension on Iterable {
  ///求和
  num sumOf<T>(num Function(T) selector) {
    num sum = 0;
    for (T element in this) {
      sum += selector(element);
    }
    return sum;
  }
}
